//
//  LanChaoPro.h
//  AndyDemo
//
//  Created by 千锋 on 15/11/14.
//  Copyright (c) 2015年 千锋. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#define WIDTH self.view.bounds.size.width
#define HEIGHT self.view.bounds.size.height
@interface LanChaoPro : NSObject

+ (UILabel *)createLabelWith:(CGRect)frame  textColor:(UIColor *)color font:(UIFont *)font backgroundColor:(UIColor *)color1 TextAlignment:(NSTextAlignment)textAlignment  text:(NSString *)text;

+ (UIImageView *)createImageViewWithframe:(CGRect)frame image:(NSString *)imageName;

+ (UIButton *)createButtonWithframe:(CGRect)frame titleColor:(UIColor *)titlecolor  backgroundColor:(UIColor *)color font:(UIFont *)font target:(id)target sel:(SEL)sel event:(UIControlEvents)event title:(NSString *)title  backgroundImage:(NSString *)imageName image:(NSString *)imageName1;

+ (UITextField *)createTextFieldWith:(CGRect)frame borderStyle:(UITextBorderStyle)borderStyle keyborderType:(UIKeyboardType)keyborderType font:(UIFont *)font textColor:(UIColor *)textColor textAlignment:(NSTextAlignment)textAlignment clearButtonMode:(UITextFieldViewMode)clearButtonMode secureTextEntry:(BOOL)secureTextEntry  placeHolder:(NSString *)placeholder backgroundImage:(NSString *)imageName;

//根据透明度来产生随机颜色
+(UIColor *)randomColorWithAlpha:(CGFloat)alpha;

+ (BOOL)isMobileNumber:(NSString *)mobileNum;


//设置导航项上的title
-(void)addNavigationItemTitle:(NSString *)title;

//设置导航项上的BarButton
-(void)addBarButtonItemWithTarget:(id)targer action:(SEL)selector andName:(NSString *)name isLeft:(BOOL)isLeft;


@end
